﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<table class="data-table">
    <thead>
        <tr>
            <th>
                Site
            </th>
            <th>
                Security Role
            </th>
            <th>
                Edit
            </th>
        </tr>
    </thead>
    <tbody>
        <% For Each roleItem In ViewData("Roles")%>
        <tr>
            <td>
                <%If roleItem.Site IsNot Nothing Then%>
                <%: roleItem.Site.Description%>
                <%Else%>
                &nbsp;
                <%End If%>
            </td>
            <td>
                <%: roleItem.Description%>
            </td>
            <td>
                <%If Not roleItem.IsSiteAdmin AndAlso Not roleItem.IsSuperRole Then%>
                <a href="javascript:selectRole(<%: roleItem.ID%>,<%: roleItem.SiteID%>);">Edit</a>
                <%Else%>
                &nbsp;
                <%End If%>
            </td>
        </tr>
        <% Next%>
    </tbody>
</table>
